package pattern;
//支付模板
public  abstract class AbstractBasePayment implements  Payment {
    /**
     * 共性
      */
public  void  payment(){
    //准备参数
    prePay();
    //pay
    pay(new PayRequest());
    //记录数据
    postPay();
}

    protected abstract void postPay();

    protected abstract void prePay();
}
